package com.ruoyi.sysem.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 借款用户授信资料对象 credit_user
 * 
 * @author ruoyi
 * @date 2022-12-19
 */
public class CreditUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long cid;

    /** 身份证 */
    @Excel(name = "身份证")
    private String identityCard;

    /** 房产证 */
    @Excel(name = "房产证")
    private String property;

    /** 驾驶证 */
    @Excel(name = "驾驶证")
    private String driv;

    /** 社保 */
    @Excel(name = "社保")
    private String social;

    /** 学位 */
    @Excel(name = "学位")
    private Long did;

    /** 还款额度 */
    @Excel(name = "还款额度")
    private String quota;

    /** 银行卡 */
    @Excel(name = "银行卡")
    private String bankCard;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    private Integer uid;//用户id

    private double borrowPrice;//信用额度
    private String credit;//是否是失信人\

private String degree;//学位

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }


    public double addCreditScore(Integer score){
        this.borrowPrice+=score;
        return borrowPrice;
    }

    public String getCredit() {
        return credit;
    }

    public void setCredit(String credit) {
        this.credit = credit;
    }

    public void setCid(Long cid)
    {
        this.cid = cid;
    }

    public Long getCid()
    {
        return cid;
    }
    public void setIdentityCard(String identityCard)
    {
        this.identityCard = identityCard;
    }

    public String getIdentityCard()
    {
        return identityCard;
    }
    public void setProperty(String property)
    {
        this.property = property;
    }

    public String getProperty()
    {
        return property;
    }
    public void setDriv(String driv)
    {
        this.driv = driv;
    }

    public String getDriv()
    {
        return driv;
    }
    public void setSocial(String social)
    {
        this.social = social;
    }

    public String getSocial()
    {
        return social;
    }
    public void setDid(Long did)
    {
        this.did = did;
    }

    public Long getDid()
    {
        return did;
    }
    public void setQuota(String quota)
    {
        this.quota = quota;
    }

    public String getQuota()
    {
        return quota;
    }
    public void setBankCard(String bankCard)
    {
        this.bankCard = bankCard;
    }

    public String getBankCard()
    {
        return bankCard;
    }
    public void setAge(Long age)
    {
        this.age = age;
    }

    public Long getAge()
    {
        return age;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public void setBorrowPrice(double borrowPrice) {
        this.borrowPrice = borrowPrice;
    }

    public Integer getUid() {
        return uid;
    }

    public double getBorrowPrice() {
        return borrowPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cid", getCid())
            .append("identityCard", getIdentityCard())
            .append("property", getProperty())
            .append("driv", getDriv())
            .append("social", getSocial())
            .append("did", getDid())
            .append("quota", getQuota())
            .append("bankCard", getBankCard())
            .append("age", getAge())
                .append("uid",getUid())
                .append("borrowPrice",getBorrowPrice())
                .append("degree",getDegree())
            .toString();
    }


}
